package com.hhkj.admin.bank.domain;

import com.ruoyi.common.core.domain.BizBaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.valid.VEdit;
import javax.validation.constraints.NotNull;

/**
 * 题库题目关联对象 t_bank_question_asso
 * 
 * @author ruoyi
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_bank_question_asso")
@NoArgsConstructor
@AllArgsConstructor
public class BankQuestionAsso extends BizBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题库id 关联 t_bank 的id字段 */
    @Excel(name = "题库id 关联 t_bank 的id字段")
    private Long bankId;

    /** 题目id 关联 t_question 的 id  字段 */
    @Excel(name = "题目id 关联 t_question 的 id  字段")
    private Long questionId;


    @Override
    @NotNull(message = "唯一主键不能为空" , groups = {VEdit.class})
    public Long getId() {
        return super.getId();
    }
}
